package com.thunder.rebot.rebotclient.entity;

import android.net.wifi.ScanResult;

import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryonet.EndPoint;

import java.util.ArrayList;
import java.util.HashMap;

public class QuerySQLEntity {

    static public void register (EndPoint endPoint) {
        Kryo kryo = endPoint.getKryo();
        kryo.register(byte[].class);
        kryo.register(Long.class);
        kryo.register(QuerySQLEntity.RequestQuery.class);
        kryo.register(QuerySQLEntity.ResponseQuery.class);
    }

    static public class RequestQuery{
        public int type;
        public String name;
        public String frame;
        public String id;

        @Override
        public String toString() {
            return "RequestQuery{" +
                    "type=" + type +
                    ", name='" + name + '\'' +
                    ", frame='" + frame + '\'' +
                    ", id='" + id + '\'' +
                    '}';
        }
    }
    static public class ResponseQuery{
        public String name;
        public int type;
        public boolean isValid;

        public String frame;
        public String id;


        public String voice;
//        public String voiceValue;

//        public String wifilistSize;
//        public HashMap<String,String> hashMap;
//        private ArrayList<ScanResult> list;
        public  String wifiname;
        public String noise;
        public String wificount;

        public String index;

        @Override
        public String toString() {
            return "ResponseQuery{" +
                    "name='" + name + '\'' +
                    ", type=" + type +
                    ", isValid=" + isValid +
                    ", frame='" + frame + '\'' +
                    ", id='" + id + '\'' +
                    ", voice='" + voice + '\'' +
                    ", wifiname='" + wifiname + '\'' +
                    ", noise='" + noise + '\'' +
                    ", wificount='" + wificount + '\'' +
                    ", index='" + index + '\'' +
                    '}';
        }
    }


}
